<div id="content">
  <div class="content_inner">
    <header>
      <h2 class="content">服务器信息表</h2>
    </header>
    <table border="0" cellspacing="1"  cellpadding="4" bgcolor="#FFFFFF" align="center" width="100%">

      <tr class=classtd>
        <td width="50%" height="24" >服务器操作系统：<span class="TableRow1"><?php echo PHP_OS ?></span></td>
        <td width="50%" height="24" ><span class="vtop td24 lineheight">服务器剩余空间</span>：<span class="lineheight smallfont">
            <?php 
            $freesize = intval(diskfreespace(".") / (1024 * 1024));
            if( $freesize > 1024 ){
              echo intval( $freesize/1024) .'&nbsp;Gb';
            }else{
               echo $freesize . "&nsbpMb";
            }
            ?>
          </span></td>
      </tr>
      <tr class=classtd>
        <td width="50%" height="24" >脚本解释引擎：<span class="TableRow1">PHP+Mysql</span></td>
        <td width="50%" height="24" >脚本超时时间：<span class="TableRow1">
            <?php echo get_cfg_var("max_execution_time") ?>
          </span>秒</td>
      </tr>
      <tr class=classtd>
        <td height="24" ><span class="vtop td24 lineheight">服务器时间</span>：<span class="TableRow1"><?php echo date('Y-m-d') ?></span></td>
        <td height="24" ><span class="TableRow1">服务器语种</span>：<span class="TableRow1"><?php echo getenv("HTTP_ACCEPT_LANGUAGE") ?></span></td>
      </tr>
      <tr class=classtd>
        <td height="24" ><span class="TableRow1">脚本运行可占最大内存</span>：<span class="TableRow1">
            <?php echo get_cfg_var("memory_limit") ? get_cfg_var("memory_limit") : "无" ?>
          </span></td>
        <td height="24" ><span class="TableRow1">脚本上传文件大小限制</span>：<span class="TableRow1">
            <?php echo get_cfg_var("upload_max_filesize") ? get_cfg_var("upload_max_filesize") : "不允许上传附件" ?>
          </span></td>
      </tr>
      <tr class=classtd>
        <td height="24" ><span class="vtop td24 lineheight">PHP版本</span>：<span class="lineheight smallfont">
            <?php echo PHP_VERSION ?>
          </span></td>
        <td height="24" >Mysql版本：<span class="lineheight smallfont">
            <?php echo zend_version() ?>
          </span></td>
      </tr>
      <tr class=classtd>
        <td height="24" ><span class="vtop td24 lineheight">图像函数库</span>：<span class="lineheight smallfont">
            <?php echo function_exists("imageline") == 1 ? '是' : '否' ?>
          </span></td>
        <td height="24" >站点物理路径：<span class="TableRow1"><?php echo $_SERVER['DOCUMENT_ROOT'] ?></span></td>
      </tr>
      <tr class=classtd>
        <td width="50%" height="24" ><span class="vtop td24 lineheight">Session支持</span>：<span class="lineheight smallfont">
            <?php echo function_exists("session_start") ? '是' : '否' ?>
          </span></td>
        <td width="50%" height="24" ><span class="TableRow1">服务器IP</span>：<span class="TableRow1"><?php echo $_SERVER['SERVER_ADDR']; ?></span></td>
      </tr>

    </table>
  </div></div>
